﻿<UserControl x:Class="LogoScriptIDE.EditorWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:avalonEdit="http://icsharpcode.net/sharpdevelop/avalonedit"
        xmlns:myspace="clr-namespace:LogoScriptIDE"
        Loaded="Window_Loaded" ContextMenuOpening="Window_ContextMenuOpening">

    <Grid>
        <avalonEdit:TextEditor
			Name="ui_editor"
			FontFamily="Consolas"
			FontSize="11pt"
            ShowLineNumbers="True" TextChanged="ui_editor_TextChanged">
            <avalonEdit:TextEditor.ContextMenu>
                <ContextMenu>
                    <MenuItem Header="Copy" Name="ui_mnuCopy" Click="ui_mnuCopy_Click"/>
                    <MenuItem Header="Cut" Name="ui_mnuCut" Click="ui_mnuCut_Click"/>
                    <MenuItem Header="Paste" Name="ui_mnuPaste" Click="ui_mnuPaste_Click"/>
                    <Separator/>
                    <MenuItem Header="Comment Selection" Name="ui_mnuComment" Click="ui_mnuComment_Click"/>
                    <MenuItem Header="Uncomment Selection" Name="ui_mnuUncomment" Click="ui_mnuUncomment_Click"/>
                    <Separator/>
                    <MenuItem Header="Clear All Breakpoints" Name="ui_mnuClearBreakpoints" Click="ui_mnuClearBreakpoints_Click"/>
                </ContextMenu>
            </avalonEdit:TextEditor.ContextMenu>
        </avalonEdit:TextEditor>
    </Grid>
</UserControl>
